import { BasePlugin } from './base-plugin';

/**
 * 支付插件
 */
export class PaymentPlugin extends BasePlugin {
  description: string;
  timeout: number;
  logo: string;
}
/*
[
  {
    "id": "ignorePaymentPlugin",
    "attributeConfigs": [
      {
        "code": "logo",
        "name": "LOGO",
        "required": false,
        "validateRule": null
      },
      {
        "code": "description",
        "name": "描述",
        "required": false,
        "validateRule": null
      }
    ],
    "name": "无须付款的支付插件",
    "description": null,
    "timeout": 86400,
    "logo": null,
    "displayName": "跳过支付环节直接充值成功",
    "order": 1,
    "config": {
      "id": 1,
      "createdDate": 1544777557000,
      "order": 1,
      "pluginId": "ignorePaymentPlugin",
      "displayName": "跳过支付环节直接充值成功",
      "enabled": true,
      "attributes": {}
    },
    "isEnabled": true,
    "isInstalled": true
  },
  {
    "id": "codePaymentAlipayPlugin",
    "attributeConfigs": [
      {
        "code": "appId",
        "name": "码支付ID",
        "required": true,
        "validateRule": null
      },
      {
        "code": "appSecret",
        "name": "通信密钥",
        "required": true,
        "validateRule": null
      },
      {
        "code": "token",
        "name": "Token",
        "required": true,
        "validateRule": null
      },
      {
        "code": "logo",
        "name": "LOGO",
        "required": false,
        "validateRule": null
      },
      {
        "code": "description",
        "name": "描述",
        "required": false,
        "validateRule": null
      }
    ],
    "name": "码支付(支付宝)",
    "type": "ALIPAY",
    "description": null,
    "timeout": 86400,
    "logo": null,
    "displayName": "码支付(支付宝)",
    "order": 2147483647,
    "config": null,
    "isEnabled": false,
    "isInstalled": false
  },
  {
    "id": "codePaymentWechatPlugin",
    "attributeConfigs": [
      {
        "code": "appId",
        "name": "码支付ID",
        "required": true,
        "validateRule": null
      },
      {
        "code": "appSecret",
        "name": "通信密钥",
        "required": true,
        "validateRule": null
      },
      {
        "code": "token",
        "name": "Token",
        "required": true,
        "validateRule": null
      },
      {
        "code": "logo",
        "name": "LOGO",
        "required": false,
        "validateRule": null
      },
      {
        "code": "description",
        "name": "描述",
        "required": false,
        "validateRule": null
      }
    ],
    "name": "码支付(微信)",
    "type": "WECHAT",
    "description": null,
    "timeout": 86400,
    "logo": null,
    "displayName": "码支付(微信)",
    "order": 2147483647,
    "config": null,
    "isEnabled": false,
    "isInstalled": false
  }
]
*/